puzzle his brains out

vt.絞腦汁,苦干